package com.seed.core.enumeration;

import com.mybatisflex.annotation.EnumValue;

public enum PropertyType {
    none("none", "无"),
    asterisk("asterisk", "星号"),
    column("column", "列"),
    hasOne("hasOne", "有一个"),
    belongsTo("belongsTo", "属于"),
    hasMany("hasMany", "有多个"),
    habtm("habtm", "属于且有多个");

    private final String value;
    private final String label;

    PropertyType(String value, String label) {
        this.value = value;
        this.label = label;
    }

    @EnumValue
    public String getValue() { return value; }

    public String getLabel() {
        return label;
    }
}
